﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Traversing - Filtering</title>
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            $("p").append($("input").map(function() {
                return $(this).val();
            }).get().join(", "));
            var inputArr = $("input").map(function() {
                return $(this).val();
            });
            alert(inputArr[0]);
        });
    </script>
</head>
<body>
    <p><b>Values: </b></p> 
    <form> 
        <input type="text" name="name" value="John"/> 

        <input type="text" name="password" value="password"/> 
        <input type="text" name="url" value="http://ejohn.org/"/> 
    </form>
</body>
</html>
